package com.cc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.math.BigDecimal;

@Data
@TableName("products")
@Schema(description = "商品实体")
public class Products extends BaseEntity {

    @TableId(value = "product_id", type = IdType.AUTO)
    @Schema(description = "商品ID")
    private Long productId;

    @TableField("product_name")
    @Schema(description = "商品名称")
    private String productName;

    @TableField("category_id")
    @Schema(description = "商品类别")
    private String categoryId;

    @TableField("brand")
    @Schema(description = "商品品牌")
    private String brand;

    @TableField("price")
    @Schema(description = "商品价格")
    private BigDecimal price;

    @TableField("purchase_price")
    @Schema(description = "商品采购价")
    private BigDecimal purchasePrice;

    @TableField("description")
    @Schema(description = "商品描述")
    private String description;

    @TableField("supplier_id")
    @Schema(description = "供应商Id")
    private String supplierId;
}